//
//  KLBookListCollectionViewCell+BookEntity.m
//  KLBookCollection
//
//  Created by apple on 2017/11/5.
//  Copyright © 2017年 bonc. All rights reserved.
//

#import "KLBookListCollectionViewCell+BookEntity.h"

#import "KLBookEntity.h"
#import "KLBookAuthor.h"
#import "KLBookTag.h"

#import "UIImageView+WebCache.h"
#import "NSArray+Extension.h"

@implementation KLBookListCollectionViewCell (BookEntity)

- (void)configureWithBookEntity:(KLBookEntity *)bookEntity {
    //title
    self.titleLabel.text = bookEntity.title;
    //image
//    [self.coverImageView sd_setImageWithURL:[NSURL URLWithString:bookEntity.image]];
}

- (void)startDownloadCoverImageWithBookEntity:(KLBookEntity *)bookEntity {
    [self.coverImageView sd_setImageWithURL:[NSURL URLWithString:bookEntity.image]];
}

@end
